import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {SponComponent} from './spon/spon.component';
import {SponInfoComponent} from './sponInfo/sponInfo.component';
import {SponPublishComponent} from './spon-publish/spon-publish.component';

const routes: Routes = [
    {path: 'spon', component: SponComponent},
    {path: 'sponInfo/:id', component: SponInfoComponent},
    {path: 'spon-publish', component: SponPublishComponent}
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})

export class SponsorRoutingModule {
}
